import { createStore, combineReducers, applyMiddleware } from 'redux'
import countReducer from './countReducer/index'
import thunk from 'redux-thunk'
let rootReducer = combineReducers({
  countReducer
})

let store = createStore(rootReducer, applyMiddleware(thunk))
//  {getState,dispatch,subscribe}

export default store